package ch04;

/**
 * Created by hasee on 2017/6/17.
 */
import java.util.Scanner;
import java.util.Random;
public class HiLo {
    public static void  main (String[]args){
        int 猜想数字,系统数字;
        String c="y";
        Random a = new Random();
        Scanner fuck = new Scanner(System.in);
        Scanner fuck1 =new Scanner(System.in);
        系统数字 = a.nextInt(101);
        System.out.println("我们来玩个游戏吧=V=好不好呀");

        while (c.equalsIgnoreCase("y")) {
            System.out.println("请输入你的猜想数字=血=：");
            猜想数字 = fuck.nextInt();
            System.out.println("您猜想的数字是⊙﹏⊙："+猜想数字);
            if (猜想数字==系统数字)
            {System.out.println("你猜对啦QAQ");
            System.out.println("还要玩吗QWQ（y/n）:");
            c =fuck1.nextLine();}
            else
            {if (猜想数字<系统数字)
                System.out.println("你猜的太小啦QAQ");
            else
                System.out.println("你猜的太大啦QAQ");}
                System.out.println("还要玩嘛QWQ（y/n）:");
            c = fuck1.nextLine();




        }
System.out.println("QAQ拜拜");

    }
}
